Pod::Spec.new do |s|
  s.name             = "NLJamUnit"
  s.version          = "0.1.3"
  s.summary          = "A Jam Kit of NLJamUnit."

  s.description      = <<-DESC
Jam Kit for Cocoa develper
                       DESC

  s.homepage         = "https://coding.net/u/iliunian/p/NLJamUnit/git"
  # s.screenshots     = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
  s.license          = 'MIT'
  s.author           = { "liu nian" => "i19850511@gmail.com" }
  s.source           = { :git => "https://git.coding.net/iliunian/NLJamUnit.git", :tag => s.version.to_s }

  s.platform     = :ios, '8.0'
  s.ios.deployment_target = '8.0'
  s.requires_arc = true

    s.subspec 'Common' do |co|
        co.source_files = 'Pod/Classes/Common/*.h'
    end
    s.subspec 'Utility' do |ut|
        ut.source_files = 'Pod/Classes/Utility/*.{h,m}'
        ut.public_header_files = 'Pod/Classes/Utility/*.{h,m}'
        ut.public_header_files = 'Pod/Classes/Utility/*.h'
        ut.frameworks = 'MapKit'
    end


    s.subspec 'Category' do |cg|
        cg.source_files = 'Pod/Classes/Category/**/*.{h,m}'
        cg.public_header_files = 'Pod/Classes/Category/**/*.h'
        cg.dependency 'Base64'
        cg.frameworks = 'UIKit'
    end

    s.public_header_files = 'Pod/Classes/NLJamUnit.h'
    s.source_files = 'Pod/Classes/NLJamUnit.h'
    s.frameworks = 'UIKit', 'MapKit'
    s.libraries = 'z'
end
